package com.openstack.javasdk;

import org.openstack4j.api.OSClient.OSClientV3;
import org.openstack4j.model.common.Identifier;
import org.openstack4j.openstack.OSFactory;

public class Auth {
    public static OSClientV3 getOS(){
        OSClientV3 os = OSFactory.builderV3()
                .endpoint("http://192.168.31.229:5000/v3")
                .credentials("admin", "admin", Identifier.byName("default"))
                .scopeToProject(Identifier.byId("e0af27432aee4d74b88484c3779c3e42"))
                .authenticate();
        return os;
    }
}
